import { ref } from "vue";
import { defineStore } from "pinia";

export const useUserStore = defineStore("user", () => {
	const token = ref(""); //用于管理后台token
	const id = ref("1729107829444374529");
	const frontToken = ref(""); // 用于管理前台token
	function setToken(input: string) {
		token.value = input;
	}

	function setFRontToken(input: string) {
		frontToken.value = input;
	}

	function setId(input: string) {
		id.value = input;
	}

	return { token, setToken,setFRontToken, id,setId };
});
